package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.Commodity;
import com.example.whatrubbish.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("CommodityMapper")
public interface CommodityMapper {
    Long selectWithPageCount(Criteria criteria);

    List<Commodity> selectWithPage(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKeyWithBLOBs(Commodity record);

    int updateByPrimaryKey(Commodity record);
}